<table class="layui-table text-center" lay-size="sm">
    <thead>
    <tr>
        <th>平台</th>
        <th>销售账号</th>
        <th>内部订单号</th>
        <th>平台订单号</th>
        <th>追踪号</th>
        <th>币种</th>
        <th>物流费用</th>
        <th>物流状态</th>
        <th>发货仓库</th>
        <th>退货仓库</th>
        <th>发货时间</th>
        <th>退货渠道</th>
        <th>退货时间</th>
        <th>备注</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {volist name="list" id="item"}
    <tr>
        <td>{$item.order.platform_name}</td>
        <td>{$item.order.account.username}</td>
        <td class="copy-text">{$item.order.order_sn}</td>
        <td class="copy-text">{$item.order.order_no}</td>
        <td class="copy-text">{$item.track_num}</td>
        <td>{$item.currcode.currency_name}</td>
        <td>{$item.logistics_price|abs}</td>
        <td>{$item.track_status}</td>
        <td>{$item.wout.name}</td>
        <td>{$item.win.name}</td>
        <td>{$item.order.shipping_time}</td>
        <td>{$item.channel?$item.channel.channel_name:''}</td>
        <td>{$item.send_time}</td>
        <td class="text-left">{$item.remark}</td>
        <td>
            <a href="{:url('order_return', ['order_id'=>$item['order_id']])}" title="退货详情" width-form="80%" height-form="80%" class="layui-btn layui-btn-xs layui-bg-blue ajax-form">查看退货</a>
            {if !empty($item.track_info)}
            <a href="{:url('return_track_info',['rid'=>$item['rid']])}" title="物流信息" width-form="60%" height-form="60%" class="layui-btn layui-btn-xs layui-bg-green ajax-form">查看物流</a>
            {elseif !empty($item.track_num)}
            <a target="_blank" class="layui-btn layui-btn-xs layui-bg-green" href="https://t.17track.net/zh-cn#nums={$item.track_num}">查看物流</a>
            {/if}
        </td>
    </tr>
    {/volist}
    {empty name="list"}
    <tr>
        <td colspan="14">没有数据</td>
    </tr>
    {/empty}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>